# Create your views here.
from django.template import *
from django.shortcuts import *
from django.template.loader import get_template
from l2ldjango.apps.pages.models import *
from django.middleware import *

def viewpages(request,pageslug=0):
	if (pageslug==0):
		page=Pages.objects.get(status='ENABLED')	
	else:
		page=Pages.objects.get(status='ENABLED',slug=pageslug)
		
	variables=RequestContext(request,{'message':'','pages':page})
	return render_to_response('pages/view_pages.html',variables)